<template>
  <el-table :data="task.tableData" style="width: 100%">

    <el-table-column prop="id" label="案件ID" width="100" />
    <el-table-column prop="task_name" label="案件名称" width="250" />

    <el-table-column  prop="create_time" label="创建时间" width="200" />

    <el-table-column label="操作">
      <template #default="scope">
        <el-button size="small" @click="in_detail(scope.row)"
                   type="primary"
        >进入案件</el-button
        >
      </template>
    </el-table-column>
  </el-table>
</template>

<script lang="ts" setup>
// import { ref } from 'vue';
import { onMounted } from 'vue';
import { useTaskStore,usePageShowStore,useTaskDetailStore } from '../stores/index'


const task = useTaskStore()
const PageShowStore = usePageShowStore()
const taskDetailStore = useTaskDetailStore()
onMounted(task.loadData)
const in_detail = (row) => {
  taskDetailStore.detail = row
  taskDetailStore.loadData()
  //路由进入资金列表
  PageShowStore.active = "3"
}


</script>

